package uy.edu.um.ltic.server.business;

import java.sql.Timestamp;
import java.util.ArrayList;

import uy.edu.um.ltic.exception.DataBaseException;

public interface MessageMgt {

	void addMessage(Message oMessage) throws DataBaseException;
	ArrayList<Message> getMessagesBetweenTwo(Employee windowBeingShown,
			Employee anotherOne) throws DataBaseException;
	ArrayList<ConferenceMessage> getConferenceMessages(int idConference) throws DataBaseException;
	ArrayList<Employee> getLastEmployees(int nEmployee) throws DataBaseException;
	ArrayList<TextMessage> getMessagesWithTheWord(String word) throws DataBaseException;
	int getAmountOfWordsWritten(int nEmployee, Timestamp date1, Timestamp date2) throws DataBaseException;
	ArrayList<Integer> getFilesFromOneEmployeeToAnother(int sender, int receiver) throws DataBaseException;
	String getNameOfFile(int id) throws DataBaseException;
	byte[] getFile(int id) throws DataBaseException;
	
}
